package com.aia.prm.web.ria.app.ui.pext;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.aia.prm.domain.VOPext;
import com.aia.prm.domain.VOPlan;
import com.vaadin.data.util.BeanItemContainer;

@SuppressWarnings("serial")
public class PextContainer extends BeanItemContainer<VOPext> implements Serializable {
	public static final Object[] NATURAL_COL_ORDER = new Object[] { "PL_ID", "EX_TYPE", "EX_VALUE", "EX_NAME", "EX_ORDER" };

	public static final String[] COL_HEADERS_SHOW = new String[] { "产品ID", "类型", "值/图片id", "显示名/图片描述", "排序号" };

	public static final Object[] NATURAL_COL_ORDER_FORM = new Object[] { "PL_ID", "EX_TYPE", "EX_VALUE", "EX_NAME", "EX_FREEFLAG1",
			"EX_ORDER" };

	public static final Map<String, String> FIELD_NAME_MAP = new HashMap<String, String>();

	static {
		FIELD_NAME_MAP.put("PL_ID", "ID");
		FIELD_NAME_MAP.put("EX_TYPE", "类型");
		FIELD_NAME_MAP.put("EX_VALUE", "字段/图片id");
		FIELD_NAME_MAP.put("EX_NAME", "字段别名/图片描述");
		FIELD_NAME_MAP.put("EX_FREEFLAG1", "是否必填(Y/N)");
		FIELD_NAME_MAP.put("EX_ORDER", "排序号");

	}

	public static final List<String> PLAN_TYPE_LIST = new ArrayList<String>();
	static {
		PLAN_TYPE_LIST.add("展示图片");
		PLAN_TYPE_LIST.add("字段");
	}

	public PextContainer() throws InstantiationException, IllegalAccessException {
		super(VOPext.class);
	}
}